package icu.d4peng.cloud.user.request;

import com.alibaba.fastjson.JSON;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author d4peng
 * @version 1.0.0
 * @date 2022-01-01 11:06
 * @description LoginRequest:登录请求
 */
public class LoginRequest implements Serializable {
    /**
     * 用户名
     */
    @NotBlank
    private String username;
    /**
     * 密码
     */
    @NotBlank
    private String password;
    /**
     * 验证码
     */
    @NotBlank
    private String code;

    public String getUsername() {
        return username;
    }

    public LoginRequest setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public LoginRequest setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getCode() {
        return code;
    }

    public LoginRequest setCode(String code) {
        this.code = code;
        return this;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
